find_package( OpenCV REQUIRED )

INCLUDE_DIRECTORIES(../include)
INCLUDE_DIRECTORIES(../qrencode)

SET(LINK_LIBS ${OpenCV_LIBS} qrencode )
AUX_SOURCE_DIRECTORY(. SRC_LIST)

ADD_LIBRARY(mylib STATIC ${SRC_LIST})
ADD_DEPENDENCIES(mylib qrencode)
TARGET_LINK_LIBRARIES(mylib pthread ${LINK_LIBS})
